﻿using System;
using System.Runtime.Serialization;

namespace Invoicing.Model.Products
{
    [DataContract]
    public class ProductModel : MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public string ProductNo { get; set; }
        [Model]
        [DataMember]
        public string Module { get; set; }
        [Model]
        [DataMember]
        public string Color { get; set; }
        [Model]
        [DataMember]
        public string Adapter { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model]
        [DataMember]
        public int SortIndex { get; set; }
        [Model]
        [DataMember]
        public int Status { get; set; }
        [Model]
        [DataMember]
        public byte PType { get; set; }
        #region Help
        [DataMember]
        public ProductCategoryCollection Categories { get; set; }
       
        #endregion
    }

    [DataContract]
    public class ProductCollection : ModelCollectionBase<ProductModel> { }
}
